<?php

namespace app\api\controller\cps;


use app\common\controller\Api;



/**
 * 饿了么霸王餐
 */
class Elmmeal extends Api
{
    protected $noNeedLogin = ['taskfeedback','cstaskfeedback'];
    protected $noNeedRight = ['*'];

    //活动商家列表
    public function shoplist()
    {
        try {
            $search = input('search','');
            $lat = input('lat','');
            $lng = input('lng','');
            $sort_type = input('sort_type','normal');

            $mt_model = new \app\api\model\cps\ElmMeal();

            $res = $mt_model->shoplist($search,$lat,$lng,$sort_type);

        } catch (\Exception $e) {
            $this->error($e->getMessage());
        }
        $this->success('请求成功',$res);
    }
}